import 'dart:convert';
class LoginLog {
  LoginLog({
    this.id,
    this.memberId,
    this.mobileMark,
    this.createTime,
  });

  int? id;
  int? memberId;
  String? mobileMark;
  String? createTime;

  factory LoginLog.fromRawJson(String str) => LoginLog.fromJson(json.decode(str));

  String toRawJson() => json.encode(toJson());

  factory LoginLog.fromJson(Map<String, dynamic> json) => LoginLog(
    id: json["id"] == null ? null : json["id"],
    memberId: json["member_id"] == null ? null : json["member_id"],
    mobileMark: json["mobile_mark"] == null ? null : json["mobile_mark"],
    createTime: json["create_time"] == null ? null : json["create_time"],
  );

  Map<String, dynamic> toJson() => {
    "id": id == null ? null : id,
    "member_id": memberId == null ? null : memberId,
    "mobile_mark": mobileMark == null ? null : mobileMark,
    "create_time": createTime == null ? null : createTime,
  };
}
///订单信息
class OrderListModel {
  OrderListModel({
    this.id,
    this.ordersn,
    this.buyersPrice,
    this.sellerPrice,
    this.createTime,
    this.sellerTime,
    this.status,
    this.goodsOrderType,
    this.placeTime,
    this.endTime,
    this.nickname,
    this.cancelTime,
    this.buyersMemberNickname,
    this.buyersMemberCode,
    this.goodsCode,
    this.thumb,
    this.goodsTitle,
  });

  int? id;
  String? ordersn;
  String? buyersPrice;
  String? sellerPrice;
  String? createTime;
  String? sellerTime;
  int? status;
  int? goodsOrderType;
  String? placeTime;
  int? endTime;
  String? nickname;
  String? cancelTime;
  String? buyersMemberNickname;
  String? buyersMemberCode;
  String? goodsCode;
  String? thumb;
  String? goodsTitle;

  factory OrderListModel.fromRawJson(String str) => OrderListModel.fromJson(json.decode(str));

  String toRawJson() => json.encode(toJson());

  factory OrderListModel.fromJson(Map<String, dynamic> json) => OrderListModel(
    id: json["id"] == null ? null : json["id"],
    ordersn: json["ordersn"] == null ? null : json["ordersn"],
    buyersPrice: json["buyers_price"] == null ? null : json["buyers_price"],
    sellerPrice: json["seller_price"] == null ? null : json["seller_price"],
    createTime: json["create_time"] == null ? null : json["create_time"],
    sellerTime: json["seller_time"],
    status: json["status"] == null ? null : json["status"],
    goodsOrderType: json["goods_order_type"] == null ? null : json["goods_order_type"],
    placeTime: json["place_time"] == null ? null : json["place_time"],
    endTime: json["end_time"] == null ? null : json["end_time"],
    nickname: json["nickname"] == null ? null : json["nickname"],
    cancelTime: json["cancel_time"],
    buyersMemberNickname: json["buyers_member_nickname"],
    buyersMemberCode: json["buyers_member_code"] == null ? null : json["buyers_member_code"],
    goodsCode: json["goods_code"] == null ? null : json["goods_code"],
    thumb: json["thumb"] == null ? null : json["thumb"],
    goodsTitle: json["goods_title"] == null ? null : json["goods_title"],
  );

  Map<String, dynamic> toJson() => {
    "id": id == null ? null : id,
    "ordersn": ordersn == null ? null : ordersn,
    "buyers_price": buyersPrice == null ? null : buyersPrice,
    "seller_price": sellerPrice == null ? null : sellerPrice,
    "create_time": createTime == null ? null : createTime,
    "seller_time": sellerTime,
    "status": status == null ? null : status,
    "goods_order_type": goodsOrderType == null ? null : goodsOrderType,
    "place_time": placeTime == null ? null : placeTime,
    "end_time": endTime == null ? null : endTime,
    "nickname": nickname == null ? null : nickname,
    "cancel_time": cancelTime,
    "buyers_member_nickname": buyersMemberNickname,
    "buyers_member_code": buyersMemberCode == null ? null : buyersMemberCode,
    "goods_code": goodsCode == null ? null : goodsCode,
    "thumb": thumb == null ? null : thumb,
    "goods_title": goodsTitle == null ? null : goodsTitle,
  };
}
///用户消息
class Article {
  Article({
    this.id,
    this.title,
    this.thumb,
    this.content,
    this.author,
    this.type,
    this.status,
    this.sort,
    this.updateTime,
    this.createTime,
    this.jumpType,
    this.jumpContent,
  });

  int? id;
  String? title;
  String? thumb;
  String? content;
  String? author;
  int? type;
  int? status;
  int? sort;
  String? updateTime;
  String? createTime;
  int? jumpType; //跳转类型   1：邀请活动
  String? jumpContent; //跳转内容   如果jump_type = 1  则这个表示活动id，请求活动接口都要这个id，目前只有jump_type = 1 如果有其它得在定义

  factory Article.fromRawJson(String str) => Article.fromJson(json.decode(str));

  String toRawJson() => json.encode(toJson());

  factory Article.fromJson(Map<String, dynamic> json) => Article(
    id: json["id"] == null ? null : json["id"],
    title: json["title"] == null ? null : json["title"],
    thumb: json["thumb"] == null ? null : json["thumb"],
    content: json["content"] == null ? null : json["content"],
    author: json["author"] == null ? null : json["author"],
    type: json["type"] == null ? null : json["type"],
    status: json["status"] == null ? null : json["status"],
    sort: json["sort"] == null ? null : json["sort"],
    updateTime: json["update_time"] == null ? null : json["update_time"],
    createTime: json["update_time"] == null ? null : json["update_time"],
    jumpType: json["jump_type"] == null ? null : json["jump_type"],
    jumpContent: json["jump_content"] == null ? null : json["jump_content"],
  );

  Map<String, dynamic> toJson() => {
    "id": id == null ? null : id,
    "title": title == null ? null : title,
    "thumb": thumb == null ? null : thumb,
    "content": content == null ? null : content,
    "author": author == null ? null : author,
    "type": type == null ? null : type,
    "status": status == null ? null : status,
    "sort": sort == null ? null : sort,
    "update_time": updateTime == null ? null : updateTime,
    "create_time": createTime == null ? null : createTime,
    "jump_type": jumpType == null ? null : jumpType,
    "jump_content": jumpContent == null ? null : jumpContent,
  };
}
///系统消息
class MemberNotice {
  MemberNotice({
    this.id,
    this.memberId,
    this.title,
    this.content,
    this.isRead,
    this.createTime,
  });

  int? id;
  int? memberId;
  String? title;
  String? content;
  String? isRead;
  String? createTime;

  factory MemberNotice.fromRawJson(String str) => MemberNotice.fromJson(json.decode(str));

  String toRawJson() => json.encode(toJson());

  factory MemberNotice.fromJson(Map<String, dynamic> json) => MemberNotice(
    id: json["id"] == null ? null : json["id"],
    memberId: json["member_id"] == null ? null : json["member_id"],
    title: json["title"] == null ? null : json["title"],
    content: json["content"] == null ? null : json["content"],
    isRead: json["is_read"] == null ? null : json["is_read"],
    createTime: json["create_time"] == null ? null : json["create_time"],
  );

  Map<String, dynamic> toJson() => {
    "id": id == null ? null : id,
    "member_id": memberId == null ? null : memberId,
    "title": title == null ? null : title,
    "content": content == null ? null : content,
    "is_read": isRead == null ? null : isRead,
    "create_time": createTime == null ? null : createTime,
  };
}

class MyGoodsSpecialDataModel{
  MyGoodsSpecialDataModel({
    this.zhuzaon,
    this.zhuzaoy,
    this.data,
});
  String? zhuzaon;
  String? zhuzaoy;
  List<MyGoodsSpecialModel>? data;

  factory MyGoodsSpecialDataModel.fromRawJson(String str) => MyGoodsSpecialDataModel.fromJson(json.decode(str));

  String toRawJson() => json.encode(toJson());

  factory MyGoodsSpecialDataModel.fromJson(Map<String, dynamic> json) => MyGoodsSpecialDataModel(
    zhuzaon: json["zhuzao_n"] == null ? null : json["zhuzao_n"].toString(),
    zhuzaoy: json["zhuzao_y"] == null ? null : json["zhuzao_y"].toString(),
    data: json["data"] == null ? null : List<MyGoodsSpecialModel>.from(json["data"].map((x) => MyGoodsSpecialModel.fromJson(x))),
  );

  Map<String, dynamic> toJson() => {
    "zhuzao_n": zhuzaon == null ? null : zhuzaon,
    "zhuzao_y": zhuzaoy == null ? null : zhuzaoy,
    "data": data == null ? null : data,
  };
}


///藏品 盲盒
class MyGoodsSpecialModel {
  MyGoodsSpecialModel({
    this.specialId,
    this.specialCastStatus,
    this.specialTypeName,
    this.specialSellStatus,
    this.specialAlbumId,
    this.specialAlbumStatus,
    this.goodsId,
    this.goodsStatus,
    this.goodsCode,
    this.allCount,
    this.chainMark,
    this.portrait,
    this.nickname,
    this.price,
    this.type,
    this.specialTypeId,
    this.title,
    this.thumb,
    this.specialAlbumRate,
    this.num,
    this.goodsType,
    this.framerMemberId,
  });

  String? specialId;
  int? specialCastStatus;
  String? specialTypeName;
  int? specialSellStatus;
  String? specialAlbumId;
  int? specialAlbumStatus;
  String? goodsId;
  String? goodsStatus;
  String? goodsCode;
  String? allCount;
  String? chainMark;
  String? portrait;
  String? nickname;
  String? price;
  int? type;
  int? specialTypeId;
  String? title;
  String? thumb;
  String? specialAlbumRate;
  int? num;
  int? goodsType;
  String? framerMemberId;

  factory MyGoodsSpecialModel.fromRawJson(String str) => MyGoodsSpecialModel.fromJson(json.decode(str));

  String toRawJson() => json.encode(toJson());

  factory MyGoodsSpecialModel.fromJson(Map<String, dynamic> json) => MyGoodsSpecialModel(
    specialId: json["special_id"] == null ? null : json["special_id"].toString(),
    specialCastStatus: json["special_cast_status"] == null ? null : json["special_cast_status"],
    specialTypeName: json["special_type_name"] == null ? null : json["special_type_name"].toString(),
    specialSellStatus: json["special_sell_status"] == null ? null : json["special_sell_status"],
    specialAlbumId: json["special_album_id"] == null ? null : json["special_album_id"].toString(),
    specialAlbumStatus: json["special_album_status"] == null ? null : json["special_album_status"],
    goodsId: json["goods_id"] == null ? null : json["goods_id"].toString(),
    goodsStatus: json["goods_status"] == null ? null : json["goods_status"].toString(),
    goodsCode: json["goods_code"] == null ? null : json["goods_code"].toString(),
    allCount:json["all_count"] == null ? (json["allCount"] == null ? null : json["allCount"].toString()) : json["all_count"].toString(),
    chainMark:json["chain_mark"] == null ? null : json["chain_mark"].toString(),
    portrait: json["portrait"] == null ? null : json["portrait"].toString(),
    nickname: json["nickname"] == null ? null : json["nickname"].toString(),
    price: json["price"] == null ? null : json["price"].toString(),
    type: json["type"] == null ? null : json["type"],
    specialTypeId: json["special_type_id"] == null ? null : json["special_type_id"],
    title: json["title"] == null ? null : json["title"].toString(),
    thumb: json["thumb"] == null ? null : json["thumb"].toString(),
    num: json["num"] == null ? null : json["num"],
    goodsType: json["goods_type"] == null ? null : json["goods_type"],
    specialAlbumRate: json["special_album_rate"] == null ? null : json["special_album_rate"].toString(),
    framerMemberId: json["framer_member_id"] == null ? null : json["framer_member_id"].toString(),
  );

  Map<String, dynamic> toJson() => {
    "special_id": specialId == null ? null : specialId,
    "special_cast_status": specialCastStatus == null ? null : specialCastStatus,
    "special_type_name": specialTypeName == null ? null : specialTypeName,
    "special_sell_status": specialSellStatus == null ? null : specialSellStatus,
    "special_album_id":specialAlbumId == null ? null : specialAlbumId,
    "special_album_status": specialAlbumStatus == null ? null :specialAlbumStatus,
    "goods_id": goodsId == null ? null :goodsId,
    "goods_status": goodsStatus == null ? null :goodsStatus,
    "goods_code":goodsCode == null ? null :goodsCode,
    "all_count":allCount == null ? null :allCount,
    "chain_mark":chainMark == null ? null :chainMark,
    "portrait": portrait == null ? null :portrait,
    "nickname": nickname == null ? null :nickname,
    "price": price == null ? null : price,
    "type": type == null ? null : type,
    "special_type_id": specialTypeId == null ? null : specialTypeId,
    "title": title == null ? null : title,
    "thumb": thumb == null ? null : thumb,
    "num": num == null ? null : num,
    "goods_type":goodsType == null ? null : goodsType,
    "special_album_rate":specialAlbumRate == null ? null : specialAlbumRate,
    "framer_member_id":framerMemberId == null ? null : framerMemberId,
  };
}
///专辑列表
class AlbumListModel {
  AlbumListModel({
    this.specialId,
    this.specialThumb,
    this.specialTitle,
    this.specialTypeName,
    this.specialApplyStatus,
    this.specialReason,
    this.specialAlbumId,
    this.specialAlbumTitile,
    this.specialAlbumThumb,
    this.specialAlbumStatus,
    this.specialAlbumReason,
    this.createTime,
    this.specialAlbumRate,
    this.type,
    this.specialAllCount,
    this.nickname,
  });

  String? specialId; //专题id
  String? specialThumb;//专题缩略图
  String? specialTitle;//专题标题
  String? specialTypeName;//专题专辑名称
  int? specialApplyStatus;//专题审核状态 审核状态 1审核中 2已通过 3已驳回
  String? specialReason; //拒绝原因
  String? specialAlbumId;//专辑ID
  String? specialAlbumTitile;//专辑名称
  String? specialAlbumThumb;//专辑缩略图
  int? specialAlbumStatus;//专辑状态 状态 1审核中 2已通过 3已驳回
  String? specialAlbumReason;//专辑拒绝原因
  String? createTime; //创建时间
  String? specialAlbumRate;//版税金
  String? nickname; //提交人
  String? specialAllCount;//数量
  int? type; //1 藏品 2专辑 3盲盒

  factory AlbumListModel.fromRawJson(String str) => AlbumListModel.fromJson(json.decode(str));

  String toRawJson() => json.encode(toJson());

  factory AlbumListModel.fromJson(Map<String, dynamic> json) => AlbumListModel(
    specialId: json["special_id"] == null ? null : json["special_id"].toString(),
    specialThumb: json["special_thumb"] == null ? null : json["special_thumb"].toString(),
    specialTitle: json["special_title"] == null ? null : json["special_title"].toString(),
    specialTypeName: json["special_type_name"] == null ? null : json["special_type_name"].toString(),
    specialApplyStatus: json["special_apply_status"] == null ? null : json["special_apply_status"],
    specialReason: json["special_reason"] == null ? null : json["special_reason"].toString(),
    specialAlbumId: json["special_album_id"] == null ? null : json["special_album_id"].toString(),
    specialAlbumTitile: json["special_album_titile"] == null ? null :json["special_album_titile"].toString(),
    specialAlbumThumb: json["special_album_thumb"] == null ? null :json["special_album_thumb"].toString(),
    specialAlbumStatus: json["special_album_status"] == null ? null :json["special_album_status"],
    specialAlbumReason: json["special_album_reason"] == null ? null :json["special_album_reason"].toString(),
    createTime: json["create_time"] == null ? null : json["create_time"].toString(),
    specialAlbumRate: json["special_album_rate"] == null ? null :json["special_album_rate"].toString(),
    nickname:json["nickname"] == null ? null : json["nickname"].toString(),
    specialAllCount:json["special_all_count"] == null ? null : json["special_all_count"].toString(),
    type: json["type"] == null ? null : json["type"],
  );

  factory AlbumListModel.fromJsonToGoods(Map<String, dynamic> json) => AlbumListModel(
    specialId: json["special_id"] == null ? null : json["special_id"].toString(),
    specialThumb: json["special_thumb"] == null ? null : json["special_thumb"].toString(),
    specialTitle: json["special_title"] == null ? null : json["special_title"].toString(),
    specialTypeName: json["special_type_name"] == null ? null : json["special_type_name"].toString(),
    specialApplyStatus: json["special_apply_status"] == null ? null : json["special_apply_status"],
    specialReason: json["special_reason"] == null ? null : json["special_reason"].toString(),
    specialAlbumId: json["special_album_id"] == null ? null : json["special_album_id"].toString(),
    specialAlbumTitile: json["title"] == null ? null :json["title"].toString(),
    specialAlbumThumb: json["thumb"] == null ? null :json["thumb"].toString(),
    specialAlbumStatus: json["special_album_status"] == null ? null :json["special_album_status"],
    specialAlbumReason: json["special_album_reason"] == null ? null :json["special_album_reason"].toString(),
    createTime: json["create_time"] == null ? null : json["create_time"].toString(),
    specialAlbumRate: json["special_album_rate"] == null ? null :json["special_album_rate"].toString(),
    nickname:json["nickname"] == null ? null : json["nickname"].toString(),
    specialAllCount:json["special_all_count"] == null ? null : json["special_all_count"].toString(),
    type: json["type"] == null ? null : json["type"],
  );

  Map<String, dynamic> toJson() => {
    "special_id": specialId == null ? null : specialId,
    "special_thumb": specialThumb == null ? null : specialThumb,
    "special_title": specialTitle == null ? null : specialTitle,
    "special_type_name": specialTypeName == null ? null : specialTypeName,
    "special_apply_status": specialApplyStatus == null ? null : specialApplyStatus,
    "special_reason": specialReason == null ? null : specialReason,
    "special_album_id": specialAlbumId == null ? null : specialAlbumId,
    "special_album_titile": specialAlbumTitile == null ? null :specialAlbumTitile,
    "special_album_thumb": specialAlbumThumb == null ? null :specialAlbumThumb,
    "special_album_status": specialAlbumStatus == null ? null :specialAlbumStatus,
    "special_album_reason": specialAlbumReason == null ? null :specialAlbumReason,
    "special_album_rate":specialAlbumRate == null ? null : specialAlbumRate,
    "create_time": createTime == null ? null : createTime,
    "special_all_count": specialAllCount == null ? null : specialAllCount,
    "nickname":nickname == null ? null : nickname,
    "type": type == null ? null : type,
  };
}
///配置信息
class ConfigNameDetail {
  ConfigNameDetail({
    this.id,
    this.type,
    this.name,
    this.title,
    this.remark,
    this.value,
    this.sort,
    this.status,
    this.createTime,
    this.updateTime,
    this.content,
  });

  int? id;
  int? type;
  String? name;
  String? title;
  String? remark;
  String? value;
  String? content;
  int? sort;
  int? status;
  String? createTime;
  String? updateTime;

  factory ConfigNameDetail.fromRawJson(String str) => ConfigNameDetail.fromJson(json.decode(str));

  String toRawJson() => json.encode(toJson());

  factory ConfigNameDetail.fromJson(Map<String, dynamic> json) => ConfigNameDetail(
    id: json["id"] == null ? null : json["id"],
    type: json["type"] == null ? null : json["type"],
    name: json["name"] == null ? null : json["name"],
    title: json["title"] == null ? null : json["title"],
    remark: json["remark"] == null ? null : json["remark"],
    value: json["value"] == null ? null : json["value"],
    sort: json["sort"] == null ? null : json["sort"],
    content: json["content"] == null ? null : json["content"],
    status: json["status"] == null ? null : json["status"],
    createTime: json["create_time"] == null ? null : json["create_time"],
    updateTime: json["update_time"] == null ? null : json["update_time"],
  );


  Map<String, dynamic> toJson() => {
    "id": id == null ? null : id,
    "type": type == null ? null : type,
    "name": name == null ? null : name,
    "content": content == null ? null : content,
    "title": title == null ? null : title,
    "remark": remark == null ? null : remark,
    "value": value == null ? null : value,
    "sort": sort == null ? null : sort,
    "status": status == null ? null : status,
    "create_time": createTime == null ? null : createTime,
    "update_time": updateTime == null ? null : updateTime,
  };
}
///联系我们
class ConnectUsModel {
  ConnectUsModel({
    this.content,
    this.contGw,
    this.contWx,
    this.contYx,
  });

  String? content;
  String? contGw;
  String? contWx;
  String? contYx;

  factory ConnectUsModel.fromRawJson(String str) => ConnectUsModel.fromJson(json.decode(str));

  String toRawJson() => json.encode(toJson());

  factory ConnectUsModel.fromJson(Map json) => ConnectUsModel(
    content: json["content"] == null ? null : json["content"],
    contGw: json["cont_gw"] == null ? null : json["cont_gw"],
    contWx: json["cont_wx"] == null ? null : json["cont_wx"],
    contYx: json["cont_yx"] == null ? null : json["cont_yx"],
  );

  Map<String, dynamic> toJson() => {
    "content": content == null ? null : content,
    "cont_gw": contGw == null ? null : contGw,
    "cont_wx": contWx == null ? null : contWx,
    "cont_yx": contYx == null ? null : contYx,
  };
}
///类型
class SpecialTypeModel {
  SpecialTypeModel({
    this.id,
    this.title,
    this.detail,
  });

  int? id;
  String? title;
  String? detail;

  factory SpecialTypeModel.fromRawJson(String str) => SpecialTypeModel.fromJson(json.decode(str));

  String toRawJson() => json.encode(toJson());

  factory SpecialTypeModel.fromJson(Map<String, dynamic> json) => SpecialTypeModel(
    id: json["id"] == null ? null : json["id"],
    title: json["title"] == null ? null : json["title"],
    detail: json["detail"] == null ? null : json["detail"],
  );

  Map<String, dynamic> toJson() => {
    "id": id == null ? null : id,
    "title": title == null ? null : title,
    "detail": detail == null ? null : detail,
  };
}
//认证信息
class MemberExtendModel {
  MemberExtendModel({
    this.id,
    this.memberId,
    this.alipayName,
    this.alipayAccount,
    this.identityZ,
    this.identityF,
    this.realNameStatus,
    this.nickname,
    this.reason,
    this.idCard,
    this.introduce,
    this.brandIntroduction,
    this.orderNum,
    this.orderNumToday,
    this.orderTotal,
    this.createTime,
  });

  int? id;
  int? memberId;
  String? alipayName;
  String? alipayAccount;
  String? identityZ;
  String? identityF;
  int? realNameStatus;
  String? nickname;
  String? reason;
  String? idCard;
  String? introduce;
  String? brandIntroduction;
  int? orderNum;
  int? orderNumToday;
  String? orderTotal;
  DateTime? createTime;

  factory MemberExtendModel.fromRawJson(String str) => MemberExtendModel.fromJson(json.decode(str));

  String toRawJson() => json.encode(toJson());

  factory MemberExtendModel.fromJson(Map<String, dynamic> json) => MemberExtendModel(
    id: json["id"] == null ? null : json["id"],
    memberId: json["member_id"] == null ? null : json["member_id"],
    alipayName: json["alipay_name"] == null ? null : json["alipay_name"],
    alipayAccount: json["alipay_account"] == null ? null : json["alipay_account"],
    identityZ: json["identity_z"] == null ? null : json["identity_z"],
    identityF: json["identity_f"] == null ? null : json["identity_f"],
    realNameStatus: json["real_name_status"] == null ? null : json["real_name_status"],
    nickname: json["nickname"] == null ? null : json["nickname"],
    reason: json["reason"] == null ? null : json["reason"],
    idCard: json["id_card"] == null ? null : json["id_card"],
    introduce: json["introduce"] == null ? null : json["introduce"],
    brandIntroduction: json["brand_introduction"] == null ? null : json["brand_introduction"],
    orderNum: json["order_num"] == null ? null : json["order_num"],
    orderNumToday: json["order_num_today"] == null ? null : json["order_num_today"],
    orderTotal: json["order_total"] == null ? null : json["order_total"],
    createTime: json["create_time"] == null ? null : DateTime.parse(json["create_time"]),
  );

  Map<String, dynamic> toJson() => {
    "id": id == null ? null : id,
    "member_id": memberId == null ? null : memberId,
    "alipay_name": alipayName == null ? null : alipayName,
    "alipay_account": alipayAccount == null ? null : alipayAccount,
    "identity_z": identityZ == null ? null :identityZ,
    "identity_f": identityF == null ? null :identityF,
    "real_name_status": realNameStatus == null ? null : realNameStatus,
    "nickname": nickname == null ? null : nickname,
    "reason": reason == null ? null :reason,
    "id_card": idCard == null ? null : idCard,
    "introduce": introduce == null ? null : introduce,
    "brand_introduction": brandIntroduction == null ? null : brandIntroduction,
    "order_num": orderNum == null ? null : orderNum,
    "order_num_today": orderNumToday == null ? null : orderNumToday,
    "order_total": orderTotal == null ? null : orderTotal,
    "create_time": createTime == null ? null : createTime,
  };
}
//转售手续费
class TransferExpenseModel {
  TransferExpenseModel({
    this.id,
    this.type,
    this.name,
    this.title,
    this.remark,
    this.value,
    this.sort,
    this.status,
    this.updateTime,
    this.createTime,
  });

  int? id;
  int? type;
  String? name;
  String? title;
  String? remark;
  String? value;
  int? sort;
  int? status;
  String? updateTime;
  String? createTime;

  factory TransferExpenseModel.fromRawJson(String str) => TransferExpenseModel.fromJson(json.decode(str));

  String toRawJson() => json.encode(toJson());

  factory TransferExpenseModel.fromJson(Map<String, dynamic> json) => TransferExpenseModel(
    id: json["id"] == null ? null : json["id"],
    type: json["type"] == null ? null : json["type"],
    name: json["name"] == null ? null : json["name"],
    title: json["title"] == null ? null : json["title"],
    remark: json["remark"] == null ? null :json["remark"],
    value: json["value"] == null ? null : json["value"],
    sort: json["sort"] == null ? null : json["sort"],
    status: json["status"] == null ? null : json["status"],
    updateTime: json["update_time"] == null ? null : json["update_time"],
    createTime: json["create_time"] == null ? null : json["create_time"],
  );

  Map<String, dynamic> toJson() => {
    "id": id == null ? null : id,
    "type": type == null ? null : type,
    "name": name == null ? null : name,
    "title": title == null ? null : title,
    "remark": remark == null ? null :remark,
    "value": value == null ? null : value,
    "sort": sort == null ? null : sort,
    "status": status == null ? null : status,
    "update_time": updateTime == null ? null : updateTime,
    "create_time": createTime == null ? null : createTime,
  };
}
//服务费
class FeeConfigModel {
  FeeConfigModel({
    this.trilateralPlatformFee,
    this.trilateralPlatformTransferFee,
    this.aisleFee,
    this.chainFee,
    this.platformFee,
  });

  String? trilateralPlatformFee;
  String? trilateralPlatformTransferFee;
  String? aisleFee;
  String? chainFee;
  String? platformFee;

  factory FeeConfigModel.fromRawJson(String str) => FeeConfigModel.fromJson(json.decode(str));

  String toRawJson() => json.encode(toJson());

  factory FeeConfigModel.fromJson(Map<String, dynamic> json) => FeeConfigModel(
    trilateralPlatformFee: json["trilateral_platform_fee"] == null ? null : json["trilateral_platform_fee"],
    trilateralPlatformTransferFee: json["trilateral_platform_transfer_fee"] == null ? null : json["trilateral_platform_transfer_fee"],
    aisleFee: json["aisle_fee"] == null ? null : json["aisle_fee"],
    chainFee: json["chain_fee"] == null ? null : json["chain_fee"],
    platformFee: json["platform_fee"] == null ? null : json["platform_fee"],
  );

  Map<String, dynamic> toJson() => {
    "trilateral_platform_fee": trilateralPlatformFee == null ? null : trilateralPlatformFee,
    "trilateral_platform_transfer_fee": trilateralPlatformTransferFee == null ? null : trilateralPlatformTransferFee,
    "aisle_fee": aisleFee == null ? null : aisleFee,
    "chain_fee": chainFee == null ? null : chainFee,
    "platform_fee": platformFee == null ? null : platformFee,
  };
}
class SpecialCastModel {
  SpecialCastModel({
    this.body,
    this.ordersn,
  });

  String? body;
  String? ordersn;

  factory SpecialCastModel.fromRawJson(String str) => SpecialCastModel.fromJson(json.decode(str));

  String toRawJson() => json.encode(toJson());

  factory SpecialCastModel.fromJson(Map<String, dynamic> json) => SpecialCastModel(
    body: json["body"] == null ? null : json["body"],
    ordersn: json["ordersn"] == null ? null : json["ordersn"],
  );

  Map<String, dynamic> toJson() => {
    "body": body == null ? null : body,
    "ordersn": ordersn == null ? null : ordersn,
  };
}
//订单记录

class BillListModel {
  BillListModel({
    this.billId,
    this.title,
    this.enterBill,
    this.outBill,
    this.billTypePid,
    this.status,
    this.moneyProof,
    this.createTime,
    this.turnover,
    this.orderNum,
  });

  int? billId;
  String? title;
  String? enterBill;
  String? outBill;
  int? billTypePid;
  int? status;
  String? moneyProof;
  String? createTime;
  String? turnover;
  String? orderNum;

  factory BillListModel.fromRawJson(String str) => BillListModel.fromJson(json.decode(str));

  String toRawJson() => json.encode(toJson());

  factory BillListModel.fromJson(Map<String, dynamic> json) => BillListModel(
    billId: json["bill_id"] == null ? null : json["bill_id"],
    title: json["title"] == null ? null : json["title"],
    enterBill: json["enter_bill"] == null ? null : json["enter_bill"],
    outBill: json["out_bill"] == null ? null : json["out_bill"],
    billTypePid: json["bill_type_pid"] == null ? null : json["bill_type_pid"],
    status: json["status"] == null ? null : json["status"],
    moneyProof: json["money_proof"] == null ? null : json["money_proof"],
    createTime: json["create_time"] == null ? null : json["create_time"],
    turnover: json["turnover"] == null ? null : json["turnover"],
    orderNum: json["order_num"] == null ? null : json["order_num"],
  );

  Map<String, dynamic> toJson() => {
    "bill_id": billId == null ? null : billId,
    "title": title == null ? null : title,
    "enter_bill": enterBill == null ? null : enterBill,
    "out_bill": outBill == null ? null : outBill,
    "bill_type_pid": billTypePid == null ? null : billTypePid,
    "status": status == null ? null : status,
    "money_proof": moneyProof == null ? null : moneyProof,
    "create_time": createTime == null ? null : createTime,
    "turnover": turnover == null ? null : turnover,
    "order_num": orderNum == null ? null : orderNum,
  };
}
//版税记录
class ChuangRateFeeListModel {
  ChuangRateFeeListModel({
    this.nickname,
    this.createTime,
    this.money,
    this.goodsTitle,
  });

  String? nickname;
  String? createTime;
  String? money;
  String? goodsTitle;

  factory ChuangRateFeeListModel.fromRawJson(String str) => ChuangRateFeeListModel.fromJson(json.decode(str));

  String toRawJson() => json.encode(toJson());

  factory ChuangRateFeeListModel.fromJson(Map<String, dynamic> json) => ChuangRateFeeListModel(
    nickname: json["nickname"] == null ? null : json["nickname"],
    createTime: json["create_time"] == null ? null : json["create_time"],
    money: json["money"] == null ? null : json["money"],
    goodsTitle: json["goods_title"] == null ? null : json["goods_title"],
  );

  Map<String, dynamic> toJson() => {
    "nickname": nickname == null ? null : nickname,
    "create_time": createTime == null ? null : createTime,
    "money": money == null ? null : money,
    "goods_title": goodsTitle == null ? null : goodsTitle,
  };
}

//分享好友
class InviteFriendsModel {
  InviteFriendsModel({
    this.posterPath,
    this.code,
    this.posterUrl,
  });

  String? posterPath;
  String? code;
  String? posterUrl;

  factory InviteFriendsModel.fromRawJson(String str) => InviteFriendsModel.fromJson(json.decode(str));

  String toRawJson() => json.encode(toJson());

  factory InviteFriendsModel.fromJson(Map<String, dynamic> json) => InviteFriendsModel(
    posterPath: json["poster_path"] == null ? null : json["poster_path"],
    code: json["code"] == null ? null : json["code"],
    posterUrl: json["poster_url"] == null ? null : json["poster_url"],
  );

  Map<String, dynamic> toJson() => {
    "poster_path": posterPath == null ? null : posterPath,
    "code": code == null ? null : code,
    "poster_url": posterUrl == null ? null : posterUrl,
  };
}

//我的直推
class InviteListModel {
  InviteListModel({
    this.createTime,
    this.nickname,
  });

  String? createTime;
  String? nickname;

  factory InviteListModel.fromRawJson(String str) => InviteListModel.fromJson(json.decode(str));

  String toRawJson() => json.encode(toJson());

  factory InviteListModel.fromJson(Map<String, dynamic> json) => InviteListModel(
    createTime: json["create_time"] == null ? null : json["create_time"],
    nickname: json["nickname"] == null ? null : json["nickname"],
  );

  Map<String, dynamic> toJson() => {
    "create_time": createTime == null ? null : createTime,
    "nickname": nickname == null ? null : nickname,
  };
}

//我的NFT
class MySpecialListModel {
  MySpecialListModel({
    this.specialId,
    this.specialCastStatus,
    this.specialTypeName,
    this.specialSellStatus,
    this.detail,
    this.castPrice,
    this.framerMemberId,
    this.specialAlbumId,
    this.specialAlbumStatus,
    this.specialAlbumRate,
    this.type,
    this.title,
    this.thumb,
    this.price,
    this.num,
  });

  String? specialId;
  int? specialCastStatus;
  String? specialTypeName;
  int? specialSellStatus;
  String? detail;
  String? castPrice;
  int? framerMemberId;
  String? specialAlbumId;
  String? specialAlbumStatus;
  String? specialAlbumRate;
  int? type;
  String? title;
  String? thumb;
  String? price;
  int? num;

  factory MySpecialListModel.fromRawJson(String str) => MySpecialListModel.fromJson(json.decode(str));

  String toRawJson() => json.encode(toJson());

  factory MySpecialListModel.fromJson(Map<String, dynamic> json) => MySpecialListModel(
    specialId: json["special_id"] == null ? null : json["special_id"].toString(),
    specialCastStatus: json["special_cast_status"] == null ? null : json["special_cast_status"],
    specialTypeName: json["special_type_name"] == null ? null : json["special_type_name"],
    specialSellStatus: json["special_sell_status"] == null ? null : json["special_sell_status"],
    detail: json["detail"] == null ? null : json["detail"],
    castPrice: json["cast_price"] == null ? null : json["cast_price"],
    framerMemberId: json["framer_member_id"] == null ? null : json["framer_member_id"],
    specialAlbumId: json["special_album_id"] == null ? null : json["special_album_id"].toString(),
    specialAlbumStatus: json["special_album_status"] == null ? null : json["special_album_status"],
    specialAlbumRate: json["special_album_rate"] == null ? null : json["special_album_rate"],
    type: json["type"] == null ? null : json["type"],
    title: json["title"] == null ? null : json["title"],
    thumb: json["thumb"] == null ? null : json["thumb"],
    price: json["price"] == null ? null : json["price"],
    num: json["num"] == null ? null : json["num"],
  );

  Map<String, dynamic> toJson() => {
    "special_id": specialId == null ? null : specialId,
    "special_cast_status": specialCastStatus == null ? null : specialCastStatus,
    "special_type_name": specialTypeName == null ? null : specialTypeName,
    "special_sell_status": specialSellStatus == null ? null : specialSellStatus,
    "detail": detail == null ? null : detail,
    "cast_price": castPrice == null ? null : castPrice,
    "framer_member_id": framerMemberId == null ? null : framerMemberId,
    "special_album_id": specialAlbumId == null ? null : specialAlbumId,
    "special_album_status": specialAlbumStatus == null ? null : specialAlbumStatus,
    "special_album_rate": specialAlbumRate == null ? null : specialAlbumRate,
    "type": type == null ? null : type,
    "title": title == null ? null : title,
    "thumb": thumb == null ? null : thumb,
    "price": price == null ? null : price,
    "num": num == null ? null : num,
  };
}





